import request from '@/utils/request'

// 查询边坡地裂缝列表
export function listCrack(query) {
  return request({
    url: '/humen/crack/list',
    method: 'get',
    params: query
  })
}

// 查询边坡地裂缝详细
export function getCrack(id) {
  return request({
    url: '/humen/crack/' + id,
    method: 'get'
  })
}

// 新增边坡地裂缝
export function addCrack(data) {
  return request({
    url: '/humen/crack',
    method: 'post',
    data: data
  })
}

// 修改边坡地裂缝
export function updateCrack(data) {
  return request({
    url: '/humen/crack',
    method: 'put',
    data: data
  })
}

// 删除边坡地裂缝
export function delCrack(id) {
  return request({
    url: '/humen/crack/' + id,
    method: 'delete'
  })
}
